package cn.sunxyz.idea.sample;

import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.List;

/**
 * Created by yangrd on 2017/5/24.
 */
public class Invocation {
    Class<?> cls;
    Object obj;
    InvocationMethod invocationMethod;

    class InvocationMethod implements Iterator<ProxyMethod> {
        Method method;
        Object[] args;
        MethodProxy proxy;
        private List<ProxyMethod> proxyMethodList;
        private int proxyStup = 0;

        @Override
        public boolean hasNext() {
            return proxyMethodList.size() < proxyStup - 1;
        }

        @Override
        public ProxyMethod next() {
            return proxyMethodList.get(proxyStup++);
        }
    }
}
